/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.pretorius.question3.lspViolation.config;

import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Bean;
import za.ac.cput.pretorius.question3.lspViolation.service.BicycleEnergyCalculator;
import za.ac.cput.pretorius.question3.lspViolation.service.TandemEnergyCalculator;
import za.ac.cput.pretorius.question3.lspViolation.service.impl.BicycleCalculatorImpl;
import za.ac.cput.pretorius.question3.lspViolation.service.impl.TandemCalculatorImpl;

/**
 *
 * @author griddy
 */
@Configurable
public class Config {
    
        
    @Bean(name="BicycleCalculator")
    public BicycleEnergyCalculator bicycleCalc()
    {
        return new BicycleCalculatorImpl();
    }
    
    @Bean(name="TandemCalculator")
    public TandemEnergyCalculator tandemCalculator()
    {
        return new TandemCalculatorImpl();
    }
    
}
